<?php
namespace app\common\model;
use think\Model;
class Unit_table extends Model
{
	/**
     * 获取某字段信息
     */
    public function getOne($field,$where){
        $result = self::field($field)->where($where)->find();
        if($result){
            $result = $result->getData();
        }
        return $result;
    }
}